<template>
	<div class="child">
		 子组件
		<slot name="s1">如果没传递数据则显示我</slot>
		<hr>
		<slot name="s2"></slot>
		<hr>
		<slot name="s3" text="儿子给父亲传递数据"></slot>
	</div>
</template>
<script>


	export default {
		name:"child",
		data(){
			return{
			
			}
		},
		methods: {
			
		},
		components: {
			
		},
		computed: {
			
		}
	}
</script>
<style scoped>
	p {
		color: red;
	}
</style>